#!/bin/sh

: "${VNDR_COMMIT:=f12b881cb8f081a5058408a58f429b9014833fc6}" # v0.1.2

install_vndr() {
	echo "Install vndr version $VNDR_COMMIT"
	git clone https://github.com/LK4D4/vndr.git "$GOPATH/src/github.com/LK4D4/vndr"
	cd "$GOPATH/src/github.com/LK4D4/vndr" || exit 1
	git checkout -q "$VNDR_COMMIT"
	go build ${GO_BUILDMODE} -v -o "${PREFIX}/vndr" .
}
